<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>Document</title>
        <style>
        .loading{
            position: fixed;
            display: none;
            width: 125px;
            height: 125px;
            top: 50%;
            left: 50%;
            margin-left: -62px;
            margin-top: -62px;
            background: url(../../img/tianqi/loading.gif) no-repeat center center;
        }
        .tip-error{
            position: fixed;
            display: table;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
        }
        .tip-label-wrap{
            display:table-cell;
            vertical-align: middle;
            text-align: center;
        }
        .tip-label{
            padding: 6px 12px;
            line-height: 1.42;
            font-size: 14px;
            border-radius: 4px;
            color: #fff;
            border: 1px solid #d43f3a;
            background-color: #d9534f;
        }
        .tipsBox{
            position: absolute;
            height: 100%;
            width: 100%;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin:auto;
            display: table;
            text-align: center;
            .box-vm{
                display:table-cell;
                vertical-align: middle;
                _position: absolute;
                _top:50%;
            }
            .box-center{
                text-align: center;
                _left:50%;
            }
            .tip{
                display: inline-block; 
            }
            .tip-error{
                display: none;
                _position: relative;
                _top:-50%;
                _left:-50%;
                padding: 6px 12px;
                line-height: 1.42;
                font-size: 14px;
                border-radius: 4px;
                color:#fff;
                border:1px solid #d43f3a;
                background-color: #d9534f;

            }
            .tip-loading{
                display: none;
            }
        }
        .listBox{
            position: relative;
        }
        .box-big{
            height: 400px;
            background-color: #fc0;
        }
        </style>
    </head>
    <body>
        <div class="loading" id="loading"></div>
        <div class="tip-error" id="tipError"><div class="tip-label-wrap"><span class="tip-label">加载失败</span></div></div>
        <div class="listBox">
            <div class="contentBox"></div>
            <div class="tipsBox">
                <div class="box-vm box-center">
                    <div class="tip tip-error">加载失败</div>
                    <div class="tip tip-loading">加载中</div>
                </div>
            </div>
        </div>
        <div class="box-big">
            <h2>样式设计</h2>
            <ol>
                <li>.tipsBox{</li>
                <li>position: absolute;</li>
                <li>height: 100%;</li>
                <li>width: 100%;</li>
                <li>top: 0;</li>
                <li>left: 0;</li>
                <li>right: 0;</li>
                <li>bottom: 0;</li>
                <li>margin:auto;</li>
                <li>display: table;</li>
                <li>text-align: center;</li>
                <li>.box-vm{</li>
                <li>display:table-cell;</li>
                <li>vertical-align: middle;</li>
                <li>_position: absolute;</li>
                <li>_top:50%;</li>
                <li>}</li>
                <li>.box-center{</li>
                <li>text-align: center;</li>
                <li>_left:50%;</li>
                <li>}</li>
                <li>.tip{</li>
                <li>display: inline-block;</li>
                <li>}</li>
                <li>.tip-error{</li>
                <li>display: none;</li>
                <li>_position: relative;</li>
                <li>_top:-50%;</li>
                <li>_left:-50%;</li>
                <li>padding: 6px 12px;</li>
                <li>line-height: 1.42;</li>
                <li>font-size: 14px;</li>
                <li>border-radius: 4px;</li>
                <li>color:#fff;</li>
                <li>border:1px solid #d43f3a;</li>
                <li>background-color: #d9534f;</li>
                <li>}</li>
                <li>.tip-loading{</li>
                <li>display: none;</li>
                <li>}</li>
                <li>}</li>
            </ol>
        </div>
    </body>
</html>